package com.example.wechat114.controller;

import com.example.wechat114.commons.JsonBean;
import com.example.wechat114.service.WxUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RequestMapping("wxUser")
@RestController
public class WxUserController {
    @Autowired
    private WxUserService wxUserService;

    @PostMapping("getUser")
    public JsonBean getUser(String openid){
        return wxUserService.selectUser(openid);
    }
}
